/*
async fn say_hello(){
    println!("world");  
}

#[tokio::main]
async fn main(){
    let op = say_hello();

    println!("hello");

    op.await;
}
*/

use mini_redis::{client, Result};


#[tokio::main]
async fn main() -> Result<()> {
    let mut client = client::connect("127.0.0.1:6379").await?;

    client.set("hello", "world".into()).await?;

    let result = client.get("hello").await?;

    println!("got hello: {:?}", result.unwrap());
    Ok(())
}
